package nz.ac.massey.cs.se400_2013.ass3.message;

/**
 * @author Chen
 * <h1>Message</h1>
 *
 * <p>Message Class</p>
 */
public class Message
{
	//The type of message
    private final MessageType type;
    //Type body of message
    private final Object body;
    public Message(MessageType type, Object body)
    {
        this.type = type;
        this.body = body;
    }

    
    public MessageType getType()
    {
        return type;
    }

    
    public Object getBody()
    {
        return body;
    }
}
